# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-lazy-import
_pkgname=lazy_import
pkgver=0.2.2
pkgrel=5
pkgdesc='A module for lazy loading of Python modules.'
url='https://pypi.org/project/lazy-import/#files'
arch=('any')
license=('GPL3')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('86caaa70b2f781ea3a09be4c01132f794d8afcea95c174f0bb62b26e468ac52c0205726e024ecc0588e157d5a7bb7c1ab856bc1aa85ed29748e6b229d66c43c8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

